<%@page import="com.system.dao.PriceDao"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="ui" uri="http://com.am.tag"%>
<%@ include file="../common.jsp" %>
<%
	PriceDao dao = new PriceDao();
	List<Map<String,Object>> list = dao.getPriceListNow(user.getId(),user.getCampus());
	pageContext.setAttribute("list", list);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  	<link rel="stylesheet" type="text/css" href="${path }/css/leftMenu.css">
    <title>My JSP 'prescriptionPrice.jsp' starting page</title>
       <style type="text/css">
			.rinput { color: #326EE9;}
			ul.ztree {margin-top: 10px;border: 1px solid #617775;background: #f0f6e4;width:375px;height:360px;overflow-y:scroll;overflow-x:auto;}
			td input{
				width:100%;
				text-align:center;
			}
		</style>
		
		<script type="text/javascript">
			function dlClicked(obj,record_id,person_id)
			{
				$("#leftFrame").attr("src","${path}/jsp/doctor/priceLeftMenu.jsp?record_id=" + record_id + "&person_id=" + person_id);
			}
			
			function selected(obj){
			 	$(obj).addClass("selected");
			}
			
			function notselected(obj){
			 	$(obj).removeClass("selected");
			}
		</script>
  </head>
  
  
  <body style="overflow-x: hidden;overflow-y:hidden;">
 		<input type="hidden" value="" id="personId" name="personId">
	 	<input type="hidden" value="" id="record_id" name="record_id">
	 	
    	<table cellSpacing="0" cellPadding="0" width="100%">
 			<tr>
				<td class="windowTitle" colspan="2">医生工作站  &gt; 处方划价</td>
			</tr>
		</table>
		<div style="position:absolute;float:left">
			<table cellSpacing="0" cellPadding="0" width="150px" height="543px" >
				<tr>
					<td>
				    	<div class="left">
							<div class="menuLeft">
								<div style="float:left">
									<h3>
										<img src="${path }/images/ico1.gif" style="margin-left: 5px;margin-top:4px;"><span style="font-size:13px;">正在划价</span>&nbsp;&nbsp;
											<a href="javascript:void(0);" ></a>
										<img onclick="refresh()" src="${path }/images/common/refresh.png"/>
									</h3>
								</div>
								<div id="charge">
									<ul>
										<c:forEach items="${list}" varStatus="status" var="obj">
											<li onmouseleave="notselected(this)"  onmouseover="selected(this)" style="padding-bottom:2px;padding-top:2px;font-family:微软雅黑;line-height:22px">
												<a id="a_${status.count}" style='width: 120px'  ondblclick="dlClicked(this,'${obj.id}','${obj.person_id}')" href='javascript:void(0);'>${obj.person_name}</a>
											</li>
										</c:forEach>
									</ul>						
								</div>
							</div>
						</div>
				    </td>
				</tr>
			</table>
		</div>
		
		<div>
			<iframe id="leftFrame" src="${path}/jsp/doctor/priceLeftMenu.jsp" width="100%" height="100%" frameborder="0"></iframe>
		</div>
  </body>
</html>
